import requests

import tkinter as tk
import tkinter.ttk as ttk




def run():
    # 创建窗口
    root = tk.Tk()
    # 设置标题
    root.title("标题1");
    w=300
    h=200
    root.geometry("%dx%d+%d+%d" %(w,h,root.winfo_screenwidth()/2-w/2,root.winfo_screenheight()/2-h/2))

    root.configure(background='red')
    #root.iconbitmap('mystar.ico')
    print(root.winfo_screenheight(),root.winfo_screenwidth())
    # 展示
    root.mainloop()


if __name__ == "__main__":
    run()
